package com.service.impl;

import java.util.List;

import com.dao.AreaDao;
import com.enetiy.Area;
import com.enetiy.Areainfo;
import com.enetiy.Areatype;
import com.enetiy.Hotspot;
import com.service.AreaService;

public class AreaServiceImpl implements AreaService {
	private AreaDao areaDao;
	
	public Area selectArea(int id) throws Exception {
		return areaDao.selectArea(id);
	}
	@Override
	public Area selectArea(String order) throws Exception {
		
		return areaDao.selectArea(order);
	}

	@Override
	public List<Area> slelectList() throws Exception {
		return areaDao.slelectList();
	}
	public void setAreaDao(AreaDao areaDao) {
		this.areaDao = areaDao;
	}
	@Override
	public Hotspot selectHotspotOne(String hodpotName, Area area)
			throws Exception {
		return areaDao.selectHotspotOne(hodpotName, area);
	}
	@Override
	public Areainfo selsctAreainfo(int areaid, int areatypeid)throws Exception {
		return areaDao.selsctAreainfo(areaid, areatypeid);
	}
	@Override
	public Areatype selectAreatype(int iden) throws Exception {
		return areaDao.selectAreatype(iden);
	}
	@Override
	public Areatype selectAreatype(int iden, int bandwidth) throws Exception {
		return areaDao.selectAreatype(iden, bandwidth);
	}
	@Override
	public Areatype selectAreatypeid(int id) throws Exception {
		return areaDao.selectAreatypeid(id);
	}
}
